home *** CD-ROM | disk | FTP | other *** search
/ L'Encyclopedie Des Jeux Video 8 / EJV8_CD1.ISO / ejv8-cd1 / data / shoot / Loft1 / Loft.exe / scripts / DefineButton2_89 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2001-05-20  |  1.1 KB  |  58 lines

  1. on(release){
  2.    set("/:bullets",eval("/:bullets") - "1");
  3.    if(_droptarget eq "/bad1")
  4.    {
  5.       set("/:score",eval("/:score") + "1");
  6.       tellTarget("/bad1")
  7.       {
  8.          gotoAndStop("hit");
  9.          play();
  10.       }
  11.    }
  12.    if(_droptarget eq "/bad2")
  13.    {
  14.       set("/:score",eval("/:score") + "1");
  15.       tellTarget("/bad2")
  16.       {
  17.          gotoAndStop("hit");
  18.          play();
  19.       }
  20.    }
  21.    if(_droptarget eq "/bad3")
  22.    {
  23.       set("/:score",eval("/:score") + "1");
  24.       tellTarget("/bad3")
  25.       {
  26.          gotoAndStop("hit");
  27.          play();
  28.       }
  29.    }
  30.    if(_droptarget eq "/bad4")
  31.    {
  32.       set("/:score",eval("/:score") + "1");
  33.       tellTarget("/bad4")
  34.       {
  35.          gotoAndStop("hit");
  36.          play();
  37.       }
  38.    }
  39.    if(_droptarget eq "/bad5")
  40.    {
  41.       set("/:score",eval("/:score") + "1");
  42.       tellTarget("/bad5")
  43.       {
  44.          gotoAndStop("hit");
  45.          play();
  46.       }
  47.    }
  48.    if(_droptarget eq "/bad6")
  49.    {
  50.       set("/:score",eval("/:score") + "1");
  51.       tellTarget("/bad6")
  52.       {
  53.          gotoAndStop("hit");
  54.          play();
  55.       }
  56.    }
  57. }
  58.